package com.scuec.groupfive.service;

import com.scuec.groupfive.entity.MockExam;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface MockExamRecordService {
    List<MockExam> getMockExamRecordsByUserId(Long userId, int page, int size);

    List<MockExam> searchMockExamRecords(
            Long userId,
            Date startDate,
            Date endDate,
            String keyword,
            int page,
            int size
    );

    Map<String, Object> getMockExamRecordDetail(Long examId);

    // 在接口中添加：
    void toggleFavorite(Long userId, Long questionId, Boolean isFavorite);

}